/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2023-02-27     86188       the first version
 */
#ifndef APPLICATIONS_HEADER_FILE_FLASH_H_
#define APPLICATIONS_HEADER_FILE_FLASH_H_
#include <stdint.h>

typedef struct
{
    int16_t (*saveData)(uint32_t sector_num, uint32_t size, uint8_t *buf);
    int16_t (*readData)(uint32_t sector_num, uint32_t size, uint8_t *buf);
    int16_t (*eraseData)(uint32_t sector_num);
}FLASH_HandleTypedef;
extern FLASH_HandleTypedef Flash_Handle;

#endif /* APPLICATIONS_HEADER_FILE_FLASH_H_ */
